<h1><%= "#{t(:listing)} #{t(:contact_types)}" %> </h1>

<table>
  <thead>
    <tr>
      <th>Label</th>
      <th><%= t :created_at %></th>
      <th><%= t :updated_at %></th>
      <th><%= t :created_by %></th>
      <th><%= t :updated_by %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @contact_types.each do |contact_type| %>
      <tr>
        <td><%= contact_type.label %></td>
        <td><%= contact_type.created_at %></td>
        <td><%= contact_type.updated_at %></td>
        <td><%= contact_type.created_by %></td>
        <td><%= contact_type.updated_by %></td>
        <td><%= link_to "#{t(:show)}", contact_type %></td>
        <td><%= link_to "#{t(:edit)}", edit_contact_type_path(contact_type) %></td>
        <td><%= link_to "#{t(:destroy)}", contact_type, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{t(:new_contact_type)}", new_contact_type_path %>
